# -*- coding:utf-8 -*-
import numpy as np

# A = np.array([1,1,1])
# B = np.array([2,2,2])
# A1 = A[:,np.newaxis]
# B1 = B[:,np.newaxis]

# print(np.vstack((A,B))) # 上下合并
# print(np.hstack((A,B))) # 合并成一个list

# C = np.vstack((A,B))
# D = np.hstack((A,B))
# print(A.shape,C.shape)
# print(np.hstack((A1,B1)))

A = np.array([1,1,1])[:,np.newaxis]
B = np.array([2,2,2])[:,np.newaxis]

C = np.concatenate((A,B,B,A),axis=1) # 合并array
print(C)
